<h2 class="title3" style="width: 95%">
	添加常见问题	
</h2>


<% form_tag("/content/create_faquestion", :method => :post, :name => "postform") do %>
	<p>
	<label for="new_faquestion" style="font-size: 14px">标题：</label>
	<%= text_field :faquestion, :title, :class => "text",:style => "width:45%" %>
	</p>
	<p>
		<label for="new_title" style="font-size: 14px">分类：</label>
		<% FaqCategory.all.each do |category|  %>
    	<%= category.name %><%= check_box_tag "categories[]" ,category.id, :class => "text" %>
		<% end %>
	</p>
	<%= render :partial => "share/post_content", :locals => {:post => @faquestion} %>
	<br/>
  <%= submit_tag "保存", :class => "submit" %>
<% end %>

<%= render :partial => "share/upload_file" %>
